import Vue from 'vue'
import Router from 'vue-router'
import List from '@/views/list'
import Profile from '@/views/profile'
import Shop from '@/views/shop'
import Shouye from '@/views/shouye'
import Wclothes from '@/views/page/Wclothes'
import status from '@/views/page/status'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'shouye',
      component: Shouye
    },
    {
      path: '/shouye',
      name: 'shouye',
      component: Shouye
    },
    {
      path: '/list',
      name: 'list',
      component: List
    },
    {
      path: '/shop',
      name: 'shop',
      component: Shop
    },
    {
      path: '/profile',
      name: 'profile',
      component: Profile,
      children:[
        {
          path: '/',
          name: 'status',
          component: status
        },
        {
          path: '/status',
          name: 'status',
          component: status
        }
      ]
    },
    {
      path: '/Wclothes',
      name: 'Wclothes',
      component: Wclothes
    }
  ]
})
